package com.rpj.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.rpj.entity.UserEntity;

public interface UserDao extends JpaRepository<UserEntity, String>,JpaSpecificationExecutor<UserEntity>{
@Query(value="select * from users where username=?1 and userpassword=?2",nativeQuery=true)
public List<UserEntity> query(String username,String userpassword);
}
